package com.bt.lms.ui.action.enp;

import com.bt.lms.ui.page.common.action.pageenp.EnpLabAction;
import com.bt.lms.ui.page.enp.EnrollmentPlanList;
import javafx.collections.ObservableList;
import javafx.event.Event;
import javafx.event.EventHandler;
import javafx.scene.Node;
import javafx.scene.layout.Pane;

/**
 * 编辑界面取消按钮事件
 */
public class EditCancelAction implements EventHandler {
    @Override
    public void handle(Event event) {
        EnrollmentPlanList enrollmentPlanList = new EnrollmentPlanList();
        Pane pane = EnpLabAction.pageSkipInfo.getPane();
        ObservableList<Node> children = pane.getChildren();
        Integer index = EnpLabAction.pageSkipInfo.getIndex();
        children.set(index, enrollmentPlanList);
    }
}
